package com.kh.first.dao;

import java.math.BigDecimal;
import java.util.Date;

import com.kh.first.pojo.DepartmentTotalPojo;
import com.kh.first.pojo.PipeChartPojo;
import com.kh.first.pojo.RepairStaffTotalPojo;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

import com.kh.first.pojo.RepairLogPojo;

@Repository
public interface RepairLogDao {
    Long saveRepairLog(RepairLogPojo pojo);

    Long saveRepairLogList(List<RepairLogPojo> list);

    Long deleteRepairLogById(Long id);

    Long updateRepairLogById(RepairLogPojo pojo);

    List<RepairLogPojo> getRepairLogList(RepairLogPojo pojo);

    Long countRepairLogList(RepairLogPojo pojo);

    Long countRepairGroupByDepartment(DepartmentTotalPojo pojo);

    List<DepartmentTotalPojo> getRepairGroupByDepartment(DepartmentTotalPojo pojo);

    List<RepairStaffTotalPojo> getRepairLogGroupByRepairType(RepairStaffTotalPojo pojo);

    RepairLogPojo getRepairLogById(RepairLogPojo pojo);

    List<Map<String, Object>> getYearLine(Integer year);

    List<PipeChartPojo> findMesTypeCount(RepairLogPojo repairLogPojo);
//    RepairLogPojo getRepairLogById(Long id);
}